package com.wl.dzt.sys.core.dao.db;


/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/5/005
 * @description 数据库表格字段
 * 数据库表格列实体
 */
public class DBColumn {
    /**
     * 列名
     */
    private String columnName,
    /**
     * 列字段类型
     */
    columnType,
    /**
     * 列注释
     */
    remarks;
    /**
     * 列长度
     */
    private Integer size;
    /**
     * 允许空
     */
    private Boolean nullable;
    /**
     * 外键关联表
     */
    private String refTable;

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName == null ? "" : columnName;
    }

    public String getColumnType() {
        return columnType == null ? "" : columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }

    public Integer getSize() {
        return size == null ? 200 : size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getRemarks() {
        return remarks == null ? "" : remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public void setNullable(Boolean nullable) {
        this.nullable = nullable;
    }

    public Boolean getNullable() {
        return nullable == null ? true : nullable;
    }

    public String getRefTable() {
        return refTable;
    }

    public void setRefTable(String refTable) {
        this.refTable = refTable;
    }

}
